<div class="main layui-clear">
    <div class="wrap">
        <div class="content detail">
            <div class="fly-panel detail-box">
                <h1>
                    <?php echo $res['title']; ?>
                </h1>
                <div class="fly-tip fly-detail-hint">
                    <span>
                        未结贴
                    </span>
                    <div class="jie-admin-box" data-id="8938">
                    </div>
                    <div class="fly-list-hint">
                        <a href="#comment">
                            <i class="iconfont" title="回答">
                                
                            </i>
                            <?php echo $res['answer_num']; ?>
                        </a>
                        <i class="iconfont" title="人气">
                            
                        </i>
                        <?php echo $res['view_num']; ?>
                    </div>
                </div>
                <div class="detail-about">
                    <a class="jie-user" href="/u/3728424/">
                        <img src="
                        <?php if(empty($res['face'])){
                             echo C('DEFAULT_FACE');
                        }else{
                            echo $res['face']; 
                        }?>" alt="<?php echo $res['nickname']; ?>" />
                        <cite>
                            <?php echo $res['nickname']; ?>
                            <em>
                                 <?php echo date('Y-m-d H:i:s',$res['create_time']); ?>
                            </em>
                        </cite>
                    </a>
                    <div class="detail-hits" id="LAY_jieAdmin" data-id="8938">
                        <span style="color:#FF7200">
                            悬赏：5飞吻
                        </span>
                        <span class="layui-btn layui-btn-mini jie-admin " type="collect" data-type="add">
                            收藏
                        </span>
                    </div>
                </div>
                <div class="detail-body photos">
                    <?php echo $res['content']; ?>
                </div>
            </div>
           
            <div class="fly-panel detail-box" style="padding-top: 0;">
                <ul class="jieda photos" id="jieda">
                    
                    <?php
                        if(!empty($result)){
                            // 输出答案列表
                            foreach ($result as $key => $value) {   ?>
                                
                                <li data-id="30625">
                                    <a name="item-1491230694056">
                                    </a>
                                    <div class="detail-about detail-about-reply">
                                        <a class="jie-user" href="/u/2471952/">
                                            <img src="<?php echo $value['face']; ?>" alt="<?php echo $value['nickname']; ?>"
                                            layer-index="2">
                                            <cite>
                                                <i>
                                                    <?php echo $value['nickname']; ?>
                                                </i>
                                                
                                            </cite>
                                        </a>
                                        <div class="detail-hits">
                                            <span>
                                               <?php echo date('Y-m-d H:i:s',$value['create_time']); ?>
                                            </span>
                                        </div>
                                    </div>
                                    <div class="detail-body jieda-body">
                                        <?php echo $value['content']; ?>
                                    </div>
                                    <div class="jieda-reply">
                                        <!-- 跳转到处理赞的页面 -->
                                        <a href="<?php echo U('zan',array('id'=>$value['id'],'qid'=>$value['qid'])); ?>">
                                            <span class="jieda-zan " type="zan">
                                                <i class="iconfont icon-zan">
                                                </i>
                                                <em>
                                                   <?php echo $value['zan_num']; ?>
                                                </em>
                                            </span>
                                        </a>
                                        <span type="reply">
                                            <i class="iconfont icon-svgmoban53">
                                            </i>
                                            回复
                                        </span>
                                    </div>
                                </li>


                                            
                           <?php } ?>
                     <?php   }else{ ?>

                    <li class="fly-none">
                        没有任何回答
                    </li>
                    <?php }?>
                </ul>
                <div class="layui-form layui-form-pane">
                    <form action="{:U('answer')}" method="post">
                        <div class="layui-form-item layui-form-text">
                            <a name="comment">
                            </a>
                            <div class="layui-input-block">
                                <div class="layui-unselect fly-edit">
                                    <span type="face" title="插入表情">
                                        <i class="iconfont icon-yxj-expression" style="top: 1px;">
                                        </i>
                                    </span>
                                    <span type="picture" title="插入图片：img[src]">
                                        <i class="iconfont icon-tupian">
                                        </i>
                                    </span>
                                    <span type="href" title="超链接格式：a(href)[text]">
                                        <i class="iconfont icon-lianjie">
                                        </i>
                                    </span>
                                    <span type="code" title="插入代码或引用">
                                        <i class="iconfont icon-emwdaima" style="top: 1px;">
                                        </i>
                                    </span>
                                    <span type="hr" title="插入水平线">
                                        hr
                                    </span>
                                    <span type="yulan" title="预览">
                                        <i class="iconfont icon-yulan1">
                                        </i>
                                    </span>
                                </div>
                                <textarea id="L_content" name="content" required="" lay-verify="required"
                                placeholder="我要回答" class="layui-textarea fly-editor" style="height: 150px;">
                                </textarea>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <input type="hidden" name="qid" value="<?php echo $res['qid']; ?>">
                            <button class="layui-btn" lay-filter="*" lay-submit="">
                                提交回答
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <div class="edge">

         <dl class="fly-panel fly-list-one">
            <dt class="fly-panel-title">
                最近热帖
            </dt>
            <?php foreach ($hot as $key => $value){ ?>
                <dd>
                    <a href="{:U('home/jie/detail',array('id'=>$value['id']))}">
                        <?php echo $value['title']; ?>
                    </a>
                    <span>
                        <i class="iconfont">
                            
                        </i>
                        <?php echo $value['view_num']; ?>
                    </span>
                </dd>
                
            <?php } ?>
          
        </dl>


        <dl class="fly-panel fly-list-one">
            <dt class="fly-panel-title">
                近期热议
            </dt>
            <?php foreach ($talk as $key => $value){ ?>

                <dd>
                    <a href="{:U('home/jie/detail',array('id'=>$value['id']))}">
                        <?php echo $value['title']; ?>
                    </a>
                    <span>
                        <i class="iconfont">
                            
                        </i>
                        <?php echo $value['answer_num']; ?>
                    </span>
                </dd>
                
            <?php } ?>
           
           
        </dl>

    </div>
</div>